import request from "@/libs/request";

export function getTypeList(data) {
  return request({
    url: "/writing/api/getTypeList",
    method: "post",
    data,
  });
}

export function getMethodTemplate(data) {
  return request({
    url: "/writing/api/getMethodTemplate",
    method: "post",
    data,
  });
}

export function getPhraseList(data) {
  return request({
    url: "/writing/api/getPhraseList",
    method: "post",
    data,
  });
}

export function getWordList(data) {
  return request({
    url: "/writing/api/getWordList",
    method: "post",
    data,
  });
}

export function wordMemoEdit(data) {
  return request({
    url: "/writing/api/editWordMemo",
    method: "post",
    data,
  });
}

export function wordMemoCheck(data) {
  return request({
    url: "/writing/api/checkWordMemo",
    method: "post",
    data,
  });
}

export function findNextWord(data) {
  return request({
    url: "/writing/api/findNextWord",
    method: "post",
    data,
  });
}

export function phraseWordPassSave(data) {
  return request({
    url: "/writing/api/saveWordPass",
    method: "post",
    data,
  });
}

export function testCommit(data) {
  return request({
    url: "/writing/api/commitWordPassExam",
    method: "post",
    data,
  });
}

export function getNewWordList(data) {
  return request({
    url: "/writing/api/getWordNewList",
    method: "post",
    data,
  });
}

export function getRandowNewWordList(data) {
  return request({
    url: "/writing/api/getRandWordNewList",
    method: "post",
    data,
  });
}

export function deleteNewWordList(data) {
  return request({
    url: "/writing/api/deleteWordNewList",
    method: "post",
    data,
  });
}

export function getMemoWordList(data) {
  return request({
    url: "/writing/api/getWordMemoList",
    method: "post",
    data,
  });
}

export function getSentenceList(data) {
  return request({
    url: "/writing/api/getSentenceList",
    method: "post",
    data,
  });
}

export function insertSentenceWrong(data) {
  return request({
    url: "/writing/api/insertSentenceWrong",
    method: "post",
    data,
  });
}

export function checkSentenceMemo(data) {
  return request({
    url: "/writing/api/checkSentenceMemo",
    method: "post",
    data,
  });
}

export function editSentenceMemo(data) {
  return request({
    url: "/writing/api/editSentenceMemo",
    method: "post",
    data,
  });
}

export function getSentenceMemoList(data) {
  return request({
    url: "/writing/api/getSentenceMemoList",
    method: "post",
    data,
  });
}

export function deleteSentenceWrong(data) {
  return request({
    url: "/writing/api/deleteSentenceWrong",
    method: "post",
    data,
  });
}

export function writingReport() {
  return request({
    url: "/writing/api/report",
    method: "post",
  });
}
